<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="referrer" content="no-referrer" />
    <link rel="icon" href="/favicon.ico" />
    <title>大连印山官网</title>
    <link rel="stylesheet" href="./assets/style.css" />
  </head>
  <body>
    <div class="wrapper self-financed">
      <header class="index-top">
        <div class="home-top-nav">
          <div class="top-nav-index">
            <div class="nav-list">
              <p class="list-text" id="login">【Log in】</p>
              <p class="list-text signup">【Sign up】</p>
              <div class="list-box">
                <p class="box-quick">My Orders</p>
                <p class="box-quick Orders">Favorites</p>
                <p class="box-quick Favourite">My goint</p>
              </div>
            </div>
            <p class="nav-title">
              <span class="list-text mobile-login">【Log in】</span>
              SCHOLARSHIPofCHINA
            </p>
          </div>
        </div>
        <div class="index-info">
          <div class="nav-box">
            <div class="nav-title">Programs</div>
            <ul class="sort-item">
              <li class="item-list">
                <p class="tit">Teaching Language <i class="icon-up"></i></p>
                <div class="more">
                  <p>Chinese</p>
                  <p>English</p>
                </div>
              </li>
              <li class="item-list">
                <p class="tit">Degree <i class="icon-up"></i></p>
                <div class="more">
                  <p>Chinese Language</p>
                  <p>Foundation Bachelor</p>
                  <p>Master</p>
                  <p>PhD</p>
                </div>
              </li>
              <li class="item-list">
                <p class="tit">Scholarship <i class="icon-up"></i></p>
                <div class="more">
                  <p>Full</p>
                  <p>Partial</p>
                  <p>Self-sponsored</p>
                </div>
              </li>
              <li class="item-list">
                <p class="tit">Major <i class="icon-up"></i></p>
                <div class="more">
                  <p>Agriculture</p>
                  <p>Economics</p>
                  <p>Fine Arts</p>
                  <p>Legal Studies</p>
                  <p>Literature</p>
                  <p>Management</p>
                  <p>Medicine</p>
                  <p>Science</p>
                </div>
              </li>
            </ul>
            <div class="sort-subcategory">
              <p class="subcategory-close"></p>
              <p class="subcategory-name"></p>
              <ul class="subcategory-item"></ul>
            </div>
          </div>
          <div class="content-box">
            <div class="info-box">
              <div class="info-search">
                <div class="search-self">
                  <div
                    class="el-input el-input-group el-input-group--append el-input-group--prepend"
                  >
                    <input
                      type="text"
                      autocomplete="off"
                      placeholder="Engineering Management"
                      class="el-input__inner"
                    />
                    <div class="el-input-group__append">
                      <button
                        type="button"
                        class="el-button search-btn el-button--default"
                      >
                        <i class="el-icon-search"></i>
                      </button>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <ul class="info-search-list">
              <li class="active">Home</li>
              <li>Online Exhibition</li>
              <li>Scholarships</li>
              <li>Self-financed Programs</li>
              <li>Universities</li>
              <li>Apply</li>
              <li>About US</li>
            </ul>
          </div>
        </div>
      </header>
      <div class="home-index">
        <div class="index-sort">
          <ul class="sort-item">
            <li class="item-list">
              <p class="tit">Teaching Language <i class="icon-up"></i></p>
              <div class="more">
                <p>Chinese</p>
                <p>English</p>
              </div>
            </li>
            <li class="item-list">
              <p class="tit"><span class="text">Degree</span> <i class="icon-up"></i></p>
              <div class="more">
                <p>Chinese Language</p>
                <p>Foundation Bachelor</p>
                <p>Master</p>
                <p>PhD</p>
              </div>
            </li>
            <li class="item-list">
              <p class="tit"><span class="text">Scholarship</span> <i class="icon-up"></i></p>
              <div class="more">
                <p>Full</p>
                <p>Partial</p>
                <p>Self-sponsored</p>
              </div>
            </li>
            <li class="item-list active">
              <p class="tit"><span class="text">Major</span> <i class="icon-up"></i></p>
              <div class="more">
                <p>Agriculture</p>
                <p>Economics</p>
                <p>Fine Arts</p>
                <p>Legal Studies</p>
                <p>Literature</p>
                <p>Management</p>
                <p>Medicine</p>
                <p>Science</p>
              </div>
            </li>
          </ul>
          <div class="sort-subcategory">
            <p class="subcategory-close"></p>
            <p class="subcategory-name"></p>
            <ul class="subcategory-item"></ul>
          </div>
        </div>
        <div class="content-box detail-box">
          <p class="title">Programs</p>
          <table>
            <thead>
              <th width="80">City, Province</th>
              <th>Program name</th>
              <th>Program ID</th>
              <th>Degree</th>
              <th>Teaching language</th>
              <th>Intake</th>
              <th>Deadline</th>
              <th>Deadline</th>
            </thead>
            <tbody>
              <tr>
                <td>Harbin</td>
                <td><a>Chinese Language -1 year</a></td>
                <td>SNC25052828656</td>
                <td>Non-degree</td>
                <td>Chinese</td>
                <td><p>2025</p> <p>Autumn</p></td>
                <td>Jun 30,2025</td>
                <td><button type="button" class="el-button list-btn el-button--text"><span>Apply</span></button></td>
              </tr>
              <tr>
                <td>Shanghai</td>
                <td><a>Chinese Language (0.5 year)</a></td>
                <td>SNC25052828655</td>
                <td>Non-degree</td>
                <td>Chinese</td>
                <td><p>2025</p> <p>Autumn</p></td>
                <td>Jun 20,2025</td>
                <td><button type="button" class="el-button list-btn el-button--text"><span>Apply</span></button></td>
              </tr>
              <tr>
                <td>Anshan</td>
                <td><a>Chinese Language -1 year</a></td>
                <td>SNC24121319721</td>
                <td>Non-degree</td>
                <td>Chinese</td>
                <td><p>2025</p> <p>Autumn</p></td>
                <td>Jun 27,2025</td>
                <td><button type="button" class="el-button list-btn el-button--text"><span>Apply</span></button></td>
              </tr>
              <tr>
                <td>Taiyuan</td>
                <td><a>Chinese Language（Zero Foundation</a></td>
                <td>SNC25051928313</td>
                <td>Non-degree</td>
                <td>Chinese</td>
                <td><p>2025</p> <p>Autumn</p></td>
                <td>Jun 27,2025</td>
                <td><button type="button" class="el-button list-btn el-button--text"><span>Apply</span></button></td>
              </tr>
              <tr>
                <td>Taiyuan</td>
                <td><a>Chinese Language (HSK5 Intensive Class)</a></td>
                <td>SNC25051328071</td>
                <td>Non-degree</td>
                <td>Chinese</td>
                <td><p>2025</p> <p>Autumn</p></td>
                <td>Jun 27,2025</td>
                <td><button type="button" class="el-button list-btn el-button--text"><span>Apply</span></button></td>
              </tr>
              <tr>
                <td>Taiyuan</td>
                <td><a>Computer Science and Technology</a></td>
                <td>SBE25010822281</td>
                <td>Bachelor</td>
                <td>English</td>
                <td><p>2025</p> <p>Autumn</p></td>
                <td>Jun 27,2025</td>
                <td><button type="button" class="el-button list-btn el-button--text"><span>Apply</span></button></td>
              </tr>
              <tr>
                <td>Taiyuan</td>
                <td><a>Software Engineering</a></td>
                <td>SBE25010822283</td>
                <td>Bachelor</td>
                <td>English</td>
                <td><p>2025</p> <p>Autumn</p></td>
                <td>Jun 27,2025</td>
                <td><button type="button" class="el-button list-btn el-button--text"><span>Apply</span></button></td>
              </tr>
              <tr>
                <td>Taiyuan</td>
                <td><a>Pre-undergraduate foundation Program</a></td>
                <td>SNC25010822284</td>
                <td>Non-degree</td>
                <td>Chinese-English Bilingual</td>
                <td><p>2025</p> <p>Autumn</p></td>
                <td>Jun 27,2025</td>
                <td><button type="button" class="el-button list-btn el-button--text"><span>Apply</span></button></td>
              </tr>
              <tr>
                <td>Taiyuan</td>
                <td><a>Pre-foundation Program（Master or doctoral）</a></td>
                <td>SNC25010822285</td>
                <td>Non-degree</td>
                <td>Chinese-English Bilingual</td>
                <td><p>2025</p> <p>Autumn</p></td>
                <td>Jun 27,2025</td>
                <td><button type="button" class="el-button list-btn el-button--text"><span>Apply</span></button></td>
              </tr>
              <tr>
                <td>Nanjing</td>
                <td><a>Chinese Language (one year)</a></td>
                <td>SNC25021224147</td>
                <td>Non-degree</td>
                <td>Chinese</td>
                <td><p>2025</p> <p>Autumn</p></td>
                <td>Jun 31,2025</td>
                <td><button type="button" class="el-button list-btn el-button--text disabled"><span>Apply</span></button></td>
              </tr>
            </tbody>
          </table>
          <div class="index-pagination">
            <div class="el-pagination">
              <i class="arrow-left disabled"></i>
              <ul class="el-pager">
                <li class="number active">1</li>
                <li class="number">2</li>
                <li class="number">3</li>
                <li class="number">4</li>
                <li class="number">5</li>
                <li class="number">6</li>
                <li class="icon-more">...</li>
                <li class="number">101</li>
              </ul>
              <i class="arrow-right"></i>
            </div>
          </div>
        </div>
      </div>
      <div class="index-goods">
        <ul class="universitites-item">
          <li class="item-list">
            <div class="list-img">
              <img style="width: 120px;height: 120px;" src="./assets/images/goods.jpg"> 
            </div>
            <div class="list-info">
              <p class="info-title">Chinese Language -1 year</p>
              <p class="info-text">
                <span class="text-color">Tuition: 12,000</span>(RMB/year)
              </p>
              <p class="info-text">City: Guangzhou Guangdong</p>
              <p class="info-text">Degree: Non-degree</p>
              <p class="info-text">Teaching language: Chinese</p>
              <p class="info-text"><span class="text-btn">Apply</span></p></div>
          </li>
          <li class="item-list">
            <div class="list-img">
              <img style="width: 120px;height: 120px;" src="./assets/images/goods.jpg"> 
            </div>
            <div class="list-info">
              <p class="info-title">Chinese Language (one year)</p>
              <p class="info-text">
                <span class="text-color">Tuition: 5,000</span>(RMB/year)
              </p>
              <p class="info-text">City: Zhengzhou Henan</p>
              <p class="info-text">Degree: Non-degree</p>
              <p class="info-text">Teaching language: Chinese</p>
              <p class="info-text"><span class="text-btn">Apply</span></p></div>
          </li>
          <li class="item-list">
            <div class="list-img">
              <img style="width: 120px;height: 120px;" src="./assets/images/goods.jpg"> 
            </div>
            <div class="list-info">
              <p class="info-title">Chinese Language -1 year</p>
              <p class="info-text">
                <span class="text-color">Tuition: 3,000</span>(RMB/year)
              </p>
              <p class="info-text">City: Zunyi Guizhou</p>
              <p class="info-text">Degree: Non-degree</p>
              <p class="info-text">Teaching language: Chinese</p>
              <p class="info-text"><span class="text-btn">Apply</span></p></div>
          </li>
          <li class="item-list">
            <div class="list-img">
              <img style="width: 120px;height: 120px;" src="./assets/images/goods.jpg"> 
            </div>
            <div class="list-info">
              <p class="info-title">C-Forestry Economics and Management(Forestry Economics and Management)</p>
              <p class="info-text">
                <span class="text-color">Tuition: 0</span>(RMB/year)
              </p>
              <p class="info-text">City: Beijing Beijing</p>
              <p class="info-text">Degree: Master</p>
              <p class="info-text">Teaching language: English</p>
              <p class="info-text"><span class="text-btn">Apply</span></p></div>
          </li>
          <li class="item-list">
            <div class="list-img">
              <img style="width: 120px;height: 120px;" src="./assets/images/goods.jpg"> 
            </div>
            <div class="list-info">
              <p class="info-title">Chinese Language -1 year</p>
              <p class="info-text">
                <span class="text-color">Tuition: 8,200</span>(RMB/year)
              </p>
              <p class="info-text">City: Beijing Beijing</p>
              <p class="info-text">Degree: Non-degree</p>
              <p class="info-text">Teaching language: Chinese</p>
              <p class="info-text"><span class="text-btn">Apply</span></p></div>
          </li>
          <li class="item-list">
            <div class="list-img">
              <img style="width: 120px;height: 120px;" src="./assets/images/goods.jpg"> 
            </div>
            <div class="list-info">
              <p class="info-title">Chinese Language -1 year</p>
              <p class="info-text">
                <span class="text-color">Tuition: 8,000</span>(RMB/year)
              </p>
              <p class="info-text">City: Shanghai Shanghai</p>
              <p class="info-text">Degree: Non-degree</p>
              <p class="info-text">Teaching language: Chinese</p>
              <p class="info-text"><span class="text-btn">Apply</span></p></div>
          </li>
          <li class="item-list">
            <div class="list-img">
              <img style="width: 120px;height: 120px;" src="./assets/images/goods.jpg"> 
            </div>
            <div class="list-info">
              <p class="info-title">Architecture</p>
              <p class="info-text">
                <span class="text-color">Tuition: 0</span>(RMB/year)
              </p>
              <p class="info-text">City: Qingdao Shandong</p>
              <p class="info-text">Degree: Bachelor</p>
              <p class="info-text">Teaching language: English</p>
              <p class="info-text"><span class="text-btn">Apply</span></p></div>
          </li>
          <li class="item-list">
            <div class="list-img">
              <img style="width: 120px;height: 120px;" src="./assets/images/goods.jpg"> 
            </div>
            <div class="list-info">
              <p class="info-title">Clinical Medicine</p>
              <p class="info-text">
                <span class="text-color">Tuition: 30,000</span>(RMB/year)
              </p>
              <p class="info-text">City: Shantou Guangdong</p>
              <p class="info-text">Degree: Bachelor</p>
              <p class="info-text">Teaching language: English</p>
              <p class="info-text"><span class="text-btn">Apply</span></p></div>
          </li>
        </ul>
      </div>
      <div class="index-footer">
        <div class="box">
          <p Class="logo">SCHOLARSHIPofCHINA</p>
          <div class="card">
            <ul class="list">
              <li class="title">Contact Us</li>
              <li class="address">Address：Xingzhihui Business Garden, No.19, Xinghuo Road,</li>
              <li style="margin-top: 10px;">mail: service@eduprchina.com</li>
            </ul>
            <ul class="list">
              <li class="title">Account analysis</li>
              <li><a href="./self-financed.html">Our Story</a></li>
              <li><a href="./self-financed.html">Our Story</a></li>
              <li><a href="./self-financed.html">Our Story</a></li>
            </ul>
            <ul class="list">
              <li class="title">Guide</li>
              <li><a href="./self-financed.html">Hot City</a></li>
              <li><a href="./self-financed.html">Our Civil Engineering</a></li>
              <li><a href="./self-financed.html">Computer Science</a></li>
            </ul>
            <ul class="list">
              <li class="title">About Us</li>
              <li>About EDUPRCHINA</li>
              <li>Cooperate with Us</li>
              <li>News & Events</li>
            </ul>
            <ul class="list">
              <li class="title">FOLLOW US</li>
              <li style="display: flex;align-items: center;opacity: 1;">
                <img width="40" src="./assets/images/f.png" alt=""> &nbsp;
                <img width="40" src="./assets/images/in.png" alt=""> &nbsp;
                <img width="35" src="./assets/images/tg.png" alt=""> &nbsp;&nbsp;
                <img width="35" src="./assets/images/w.png" alt="">
              </li>
            </ul>
          </div>
        </div>
      </div>
      <div class="copyright">
        © 2022 EDUPRCHINA. All rights reserved.
      </div>
      <div class="index-code">
        <img width="100%" src="./assets/images/code.png" alt="" />
        <p class="msg">微信扫码咨询</p>
      </div>
      <div class="log-box">
        <div class="mobile-login">
          <img width="32" src="./assets/images/login.png" />
          Log in
        </div>
        <div class="mobile-signup">
          <img width="26" src="./assets/images/reg.png" />
          Sign Up
        </div>
      </div>
    </div>
    <div class="login-index hide">
      <div class="el-dialog__wrapper" style="z-index: 2069;">
        <div class="el-dialog" style="margin-top: 15vh; width: 1200px;">
          <div class="el-dialog__header">
            <span class="el-dialog__title"></span>
          </div>
          <div class="el-dialog__body">
            <div class="login-content">
              <i class="icon-close" id="close"></i> 
              <img src="./assets/images/login-index-bg.jpg" class="content-img">
              <div class="content-info">
                <p class="tit">SCHOLARSHIPofCHINA</p>
                <div class="info-ipt el-input el-input--suffix">
                  <input type="text" autocomplete="off" placeholder="Username or email" class="el-input__inner">
                </div> 
                <div class="info-ipt te el-input el-input--suffix">
                  <input type="password" autocomplete="off" placeholder="Password" class="el-input__inner">
                  <span class="el-input__suffix">
                    <span class="el-input__suffix-inner"></span>
                  </span>
                </div>
                <div class="info-operate">
                  <span class="operate-sign signup">Sign up</span>
                  <span class="operate-pwd" id="password">Forgot password?</span>
                </div> 
                <button type="button" class="el-button info-btn el-button--primary">
                  <span>Log in</span>
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="v-modal" style="z-index: 2068;"></div>
    </div>
  </body>
  </html>
  <script> 
  function getParamsUsingURLSearchParams() {
    const params = new URLSearchParams(window.location.href.split('?')[1] || '');
    const result = {};
    // 获取所有参数
    params.forEach((value, key) => {
      // 处理重复参数名的情况，转为数组
      if (result[key]) {
        if (!Array.isArray(result[key])) {
          result[key] = [result[key]];
        }
        result[key].push(value);
      } else {
        result[key] = value;
      }
    });
    
    return result;
  }
  const { login } = getParamsUsingURLSearchParams()
  if(login) {
    document.querySelector('.login-index').classList.remove('hide')
  }
  function detectDeviceType() {
    const width = window.innerWidth;
    
    // 常见设备类型的分辨率阈值（可根据需要调整）
    const thresholds = {
      mobile: 768,  // 小于此值为移动设备
      tablet: 1024  // 小于此值且大于等于mobile为平板设备
    };
    
    if (width < thresholds.mobile) {
      return 'mobile';
    }{
      return 'desktop';
    }
  }

  // 初始检测
  let currentDeviceType = detectDeviceType();
  console.log(`初始设备类型: ${currentDeviceType}`);
  if(currentDeviceType == 'mobile'){
    document.querySelector('body').classList.add('mobile');
  }
  // 监听窗口大小变化事件
  window.addEventListener('resize', function() {
    const newDeviceType = detectDeviceType();
    
    // 仅在设备类型变化时执行操作
    if (newDeviceType !== currentDeviceType) {
      console.log(`设备类型已变更: ${currentDeviceType} → ${newDeviceType}`);
      currentDeviceType = newDeviceType;
      if(currentDeviceType == 'mobile'){
        document.querySelector('body').classList.add('mobile');
      }else{
        document.querySelector('body').classList.remove('mobile');
      }
    }
  });

    
  const navList = document.querySelector('.nav-box .sort-item').querySelectorAll('.item-list')
  navList.forEach((element) => {
    element.querySelector('.tit').addEventListener('click', function() {
      const isActive = this.parentNode.classList.contains('active')
      navList.forEach((el) => {
        el.classList.remove('active');
      });
      if (!isActive) {
        this.parentNode.classList.add('active');
      }
    });
    const tabs = element.querySelector('.more').querySelectorAll('p')
    tabs.forEach((el) => {
      el.addEventListener('click', function() {
        const isActive = this.classList.contains('active')
        navList.forEach((e) => {
          const p = e.querySelector('.more').querySelectorAll('p')
          p.forEach((pl) => {
            pl.classList.remove('active')
          })
        });
        if (!isActive) {
          this.classList.add('active')
          const parentElement = this.parentElement;
          const previousSibling = parentElement.previousElementSibling;
          const title = previousSibling.textContent
          document.querySelector('.index-info .subcategory-name').innerHTML = title
          const list =  document.querySelector('.index-info .subcategory-item')
          list.innerHTML = ''
          parentElement.querySelectorAll('p').forEach(te => {
            const newLi = document.createElement('li');
            newLi.innerHTML = te.textContent
            list.appendChild(newLi)
          })
          document.querySelector('.index-info .sort-subcategory').style.display = 'block'
        } else{
          document.querySelector('.index-info .sort-subcategory').style.display = 'none'
        }
      });
    })
  });

  const navList2 = document.querySelector('.index-sort .sort-item') && document.querySelector('.index-sort .sort-item').querySelectorAll('.item-list')
  if(navList2) {
    navList2.forEach((element) => {
    element.querySelector('.tit').addEventListener('click', function() {
      const isActive = this.parentNode.classList.contains('active')
      navList2.forEach((el) => {
        el.classList.remove('active');
      });
      if (!isActive) {
        this.parentNode.classList.add('active');
      }
    });
    const tabs = element.querySelector('.more').querySelectorAll('p')
    tabs.forEach((el) => {
      el.addEventListener('click', function() {
        const isActive = this.classList.contains('active')
        navList2.forEach((e) => {
          const p = e.querySelector('.more').querySelectorAll('p')
          p.forEach((pl) => {
            pl.classList.remove('active')
          })
        });
        if (!isActive) {
          this.classList.add('active')
          const parentElement = this.parentElement;
          const previousSibling = parentElement.previousElementSibling;
          const title = previousSibling.textContent
          document.querySelector('.index-sort .subcategory-name').innerHTML = title
          const list =  document.querySelector('.index-sort .subcategory-item')
          list.innerHTML = ''
          parentElement.querySelectorAll('p').forEach(te => {
            const newLi = document.createElement('li');
            newLi.innerHTML = te.textContent
            list.appendChild(newLi)
          })
          document.querySelector('.index-sort .sort-subcategory').style.display = 'block'
        } else{
          document.querySelector('.index-sort .sort-subcategory').style.display = 'none'
        }
      });
    })
  });

  }
  document.querySelectorAll('.subcategory-close').forEach((element) => {
    element.addEventListener('click', function() {
      this.parentNode.style.display = 'none'
      const parentElement = this.parentElement;
      const previousSibling = parentElement.previousElementSibling;
      previousSibling.querySelectorAll('.item-list').forEach((el) => {
        el.querySelectorAll('p').forEach((elm) => {
          elm.classList.remove('active')
        })
      })
    })
  })
  document.querySelector('#login').addEventListener('click', function() {
    document.querySelector('.login-index').classList.remove('hide')
  });
  document.querySelector('#close').addEventListener('click', function() {
    document.querySelector('.login-index').classList.add('hide')
  })
  document.querySelectorAll('.mobile-login').forEach((element) => {
    console.log(11)
    element.addEventListener('click', function() {
      window.location.href = './mobile-login.html'
    })
  })
  
  document.querySelectorAll('.signup').forEach((element) => {
    element.addEventListener('click', function() {
      window.location.href = './signup.html'
    })
  })
  document.querySelectorAll('.mobile-signup').forEach((element) => {
    element.addEventListener('click', function() {
      window.location.href = './mobile-signup.html'
    })
  })
  document.querySelector('#password').addEventListener('click', function() {
    window.location.href = './password.html'
  })
  </script>